#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void print1(char(*p)[5], int x, int y) {
	int i = 0;
	for (i = 0;i < x;i++) {
		int j = 0;
		for (j = 0;j < y;j++) {
			printf("%d ", *((*p + i) + j));
		}
		printf("\n");
	}
}
/*void print1(char(*p)[5], int x, int y) {
	int i = 0;
	for (i = 0;i < x;i++) {
		int j = 0;
		for (j = 0;j < y;j++) {
			printf("%d ", (*p+ i)[j]);
		}
		printf("\n");
	}
}*/
int main() {
	char arr[3][5] = { {1,2,3,4,5},{2,3,4,5,6},{3,4,5,6,7} };
	print1(arr, 3, 5);
	return 0;
}